<template>
  <div>
    <el-row style="margin-top: 20px">
      <el-col :span="10">
        <el-card class="myDiv">
          欢迎管理员：{{user.username}}
        </el-card>
      </el-col>
      <el-col :span="10" :offset="1">
        <el-card class="myDiv">
          搬家管理系统
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import Cookies from "js-cookie";
export default {
  name: "Home",
  data () {
    return {
      user:''
    }
  },
  mounted() {
    this.user = JSON.parse(Cookies.get('user'))
  }
}
</script>

<style scoped>
.myDiv{
  border-radius: 15px;
  background: #ffffff;
  box-shadow:  20px 20px 60px #d9d9d9,
  -20px -20px 60px #ffffff;
}
</style>
